﻿<%@ Page Language="C#" MasterPageFile="~/Teacher.Master" AutoEventWireup="true" CodeBehind="TeacherGradeManage.aspx.cs" Inherits="ScoreManage.Teacher" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <table style="width:100%">
    <tr>
      <td style="font-family:黑体; font-size:26px; height:30px; text-align:center;">
        成绩管理
      </td>
    </tr>

    <tr>
      <td>
        <asp:TextBox ID="txtQuery" runat="server"></asp:TextBox>
        <asp:Button ID="btnQueryByCname" runat="server" Text="按课程名称查询" onclick="btnQueryByCname_Click" />
        <asp:Button ID="btnQueryBySno" runat="server" Text="按学号查询" onclick="btnQueryBySno_Click" />
        <asp:Button ID="btnShowAll" runat="server" Text="全部显示" onclick="btnShowAll_Click" /><br/>
      </td>
    </tr>

    <tr>
      <td>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="800px" CellPadding="4" ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
          <Columns>
            <asp:BoundField DataField="cno" HeaderText="课程号" ReadOnly="True" />
            <asp:BoundField DataField="cname" HeaderText="课程名" ReadOnly="True" />
            <asp:BoundField DataField="credit" HeaderText="学分" ReadOnly="True" />
            <asp:BoundField DataField="sno" HeaderText="学号" ReadOnly="True" />
            <asp:BoundField DataField="sname" HeaderText="姓名" ReadOnly="True" />
            <asp:BoundField DataField="student_sex" HeaderText="性别" ReadOnly="True" />
            <asp:BoundField DataField="student_department" HeaderText="院系" ReadOnly="True" />
            <asp:BoundField DataField="score" HeaderText="成绩" ReadOnly="True" />
            <asp:TemplateField ShowHeader="False">
              <ItemTemplate>
                <asp:HyperLink ID="hlinkEdit" runat="server" 
                    NavigateUrl='<%# System.String.Format("TeacherGradeEdit.aspx?cno={0}&sno={1}",Eval("cno"),Eval("sno"))  %>'>编辑</asp:HyperLink>
                
              </ItemTemplate>
            </asp:TemplateField>
          </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
      </td>
    </tr>
  </table>
</asp:Content>

